/*
 * Sonar.cpp
 *
 *  Created on: Jan 29, 2010
 *      Author: fmason
 */
#include "sonar.h"

void Sonar::setup()
{
	delay( 500 );
}

int Sonar::getDistance(int sonarPosition)
{
	return analogRead( sonarPosition ) / 2;
}
